public class Movie {
    private String name;
    private String director;
    private String mainActor;
    private String description;
    private int duration; // 单位：分钟
    private double rating; // 0-10分

    public Movie(String name, String director, String mainActor, String description, int duration, double rating) {
        this.name = name;
        this.director = director;
        this.mainActor = mainActor;
        this.description = description;
        this.duration = duration;
        this.rating = rating;
    }

    public String getName() { return name; }
    public String getDirector() { return director; }
    public String getMainActor() { return mainActor; }
    public String getDescription() { return description; }
    public int getDuration() { return duration; }
    public double getRating() { return rating; }
} 